package com.wmyg.antifake.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-05
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
@Data
@Table(name = "bk_company")
public class Company {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "company_id")
    private Integer companyId;

    @Column(name = "company_name")
    private String companyName;

    @Column(name = "address")
    private String address;

    @Column(name = "contract")
    private String contract;

    @Column(name = "contract_num")
    private String contractNum;

    @Column(name = "licence_num")
    private String licenceNum;

    @Lob
    @Column(name = "licence_pic")
    private String licencePic;

    @Column(name = "company_logo")
    private String companyLogo;

    @Lob
    @Column(name = "company_pics")
    private String companyPics;

    @Column(name = "type")
    private Integer type;

    @CreatedDate
    @Column(name = "create_time")
    private Date createTime;

    @LastModifiedDate
    @Column(name = "modify_time")
    private Date modifyTime;

    @Column(name = "is_history")
    private Integer isHistory;

}
